package com.qianfeng.libra.cowshop.app.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by Libra丶ZW on 2015/3/23 0023.
 */
public class DBHelper extends SQLiteOpenHelper {
    public DBHelper(Context context) {
        super(context, "appdb", null, 1);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL("create table carts (" +
                "_id integer primary key autoincrement, " +
                "productimg text," +
                "productsn text," +
                "saleproductid integer," +
                "shoppingnum integer," +
                "EBPrice integer," +
                "Price integer," +
                "ShortPrice integer," +
                "stock integer," +
                "allowbuycount integer" +
                ")");

    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
